package io.renren.modules.seal.utils;

import io.renren.common.utils.PropertiesUtils;

import java.io.File;
/**
 * @author xiegaolong
 * @description
 * @date 2024/9/23
 */
public class PaperlessConfig {


    /* 无纸化可信签名系统的host  */
    public static String host = PropertiesUtils.getString("cafa.host");

    /* 无纸化可信签名系统的port  */
    public static String port = PropertiesUtils.getInt("cafa.port")+"";

    public static String sslProtocol = "SSL";

    public static String basePath = PropertiesUtils.getString("cafa.basePath");
    public static String keyStorePath = basePath+"/cert/client.jks";
    public static String keyStorePassword = "11111111";
    public static String trustStorePath = basePath+"/cert/client.jks";
    public static String trustStorePassword = "11111111";

    /**
     * 印章输出目录
     */
    public static String sealOutPut = basePath + "/output";

    /**
     * 结算中心
     */
    public static String jszxOut = basePath + "/jszx";
    //临时文件
    public static String tempOut = basePath + "/temp";

    public static final String DEFAULT_CHARSET = "UTF-8";

    public static final String configPath = basePath+"/config";

    public static final String baseFontPath = configPath +File.separator + "simsun-all.ttf";

    public static final String templateFilePath =  configPath +File.separator + "tempFiles";

    public static final String trusterCertPath =  configPath +File.separator + "trustCert";

    public static final String crlFilePath = configPath +File.separator + "crl";


    public final static String organizationCode = "001";
    public final static String operationCode = "";
    public final static String channelCode = "";
    public final static String sealCode = "yz001";
    public final static String sealPassword="cfca1234";


    public static final String ShowUrl = PropertiesUtils.getString("cafa.showFile");
}
